package com.ctgu.j08.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ctgu.j08.vo.Department;
import com.ctgu.j08.vo.Factory;
import com.ctgu.j08.vo.Result;
import org.springframework.stereotype.Service;

/**
 * @version 1.0
 * @author: Saiya Wang
 * @date: 2021/5/28 21:23
 */
@Service
public interface FactoryService extends IService<Factory> {
    /**
     * 通过id获取工厂
     * @param facId
     * @return
     */
    public Factory getById(int facId);

    /**
     * 通过name获取工厂
     * @param facName
     * @return
     */
    public Factory getByfacName(String facName);

    /**
     * 编辑工厂
     * @param factory
     * @return
     */
    public Result editFactory(Factory factory);

    /**
     * 添加工厂
     * @param factory
     * @return
     */
    public Result addFactory(Factory factory);

    /**
     * 通过id删除工厂
     * @param facId
     * @return
     */
    public Result delFactoryById(Integer facId);

    /**
     * 获取所有工厂信息
     * @return
     */
    public Result getAllFactoryInfo();

    /**
     * 通过用户名查找
     * @param facName
     * @return
     */
    public Result searchFactoryByName(String facName);
}
